﻿<%@ Control Language="C#" ClassName="comment" Inherits="Wedn.TemplateEngine.UC.Template" %>

<!--评论开始-->
<h3 id="comments"><%=PostDetail.Title %>：目前有<%=PostDetail.Comments.Count>0?PostDetail.Comments.Count+"条留言":"等着您坐沙发呢"%></h3>
<ol class="commentlist">
    <%foreach (var item in GetComments(PostDetail))
      {%>
    <li class="comment depth-1">
        <div class="comment-body">
            <div class="vcard">
                <img alt="" src="#" class="avatar"><div class="floor"></div>
                <strong><a href="javascript:;"><%=item.Auther %></a></strong>:&nbsp;&nbsp;<a href="javascript:;" title="编辑评论">编辑</a>
            </div>
            <p>
                <%=item.Content %>
            </p>
            <div class="clear"></div>
            <span class="datetime"><%=item.PubDate.ToString("yyyy-MM-dd hh-mm") %></span><span class="reply"><a href="#respond">[回复]</a></span>
        </div>
        <%LoadChildComments(item);%>
    </li>
    <% } %>
</ol>
<div class="navigation">
    <div class="pagination"></div>
</div>
<%Include("_respond.ascx"); %>
<!--评论结束-->
